package cn.edu.beans;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainclassStat {

	public static void main(String[] args) {
		// 通过配置文件创建 创建ApplicationContext 容器
		ApplicationContext ctx = new ClassPathXmlApplicationContext("classpath:/beans/beans.xml");
		UserServiceImpl userServiceImpl = (UserServiceImpl)ctx.getBean("userServiceImpl");
		userServiceImpl.sayHi();
	}
}
